﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AppCommerciaux.Entity
{
    public partial class lignecommandeclient
    {

        public decimal GetTotalTTC()
        {
            decimal result =  ((100+(decimal)this.produit.tva.Taux)/100)*((decimal)((decimal)this.produit.pu * this.quantite));
            return result;
        }

        public decimal GetTotalHT()
        {
            return (decimal)((decimal)this.produit.pu * this.quantite);
        }


    }
}
